/*! For license information please see init.1b0ca66798533c8bb334.js.LICENSE.txt */ !function(){"use strict";var e,t,r={955:function(e,t,r){r.d(t,{VW:function(){return l},Wo:function(){return d},fj:function(){return u},l2:function(){return s},t9:function(){return c},w$:function(){return f}});var n=r(665),o=r(260),i=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t),!1))}},324:function(e,t,r){r.d(t,{q:function(){return u},t:function(){return c}});var n,o=r(185),i=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype},a=function(e){var t,r,n={};try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(e)),a=i.next();!a.done;a=i.next()){var s=o(a.value,2),c=s[0],u=s[1];null!==u&&"number"!=typeof u&&"string"!=typeof u&&"boolean"!=typeof u||(n[c]=u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return Object.entries(n).forEach((function(e){var t=o(e,2),r=t[0],i=t[1];("function"==typeof i||"object"==typeof i&&null!==i||"symbol"==typeof i)&&delete n[r]})),n},s=function(e){var t=n({},e);return Object.entries(t).forEach((function(e){var r=o(e,2),n=r[0],i=r[1];""!==i&&null!=i||delete t[n]})),t}},654:function(e,t,r){r.d(t,{OW:function(){return n},uX:function(){return i},wL:function(){return a}});var n=["card","credit","expiry","cvv","cvc"],o=["cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type"],i=function(e,t){var r;void 0===t&&(t=n);var i=(null!==(r=e.getAttribute("autocomplete"))&&void 0!==r?r:"").toLowerCase();return!(!i||!o.some((function(e){return i.includes(e)})))||Array.from(e.attributes).filter((function(e){return"value"!==e.name})).flatMap((function(e){return[e.name,e.value]})).some((function(e){return t.some((function(t){return e.toLowerCase().includes(t)}))}))},a=new Set(["file","password"])},757:function(e,t,r){r.d(t,{f4:function(){return d},vS:function(){return f}});var n=r(409),o=r(185),i=r(809),a=r(311),s=r(955),c=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(n),!1),void 0,(function(e,t,r,n){var o,a,s,c,d,f,p,g,h,v;return void 0===n&&(n=[]),u(this,(function(u){switch(u.label){case 0:u.trys.push([0,5,6,7]),o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),a=o.next(),u.label=1;case 1:return a.done?[3,4]:(s=a.value).sessionId?n.includes(s.sessionId)?[3,3]:[4,l(s.sessionId,t,r)]:[3,3];case 2:if(null==(c=u.sent())?void 0:c.isActive)return[2,{sessionId:s.sessionId,sessionTimeRemaining:c.sessionTimeRemaining,visitorId:null!==(g=s.visitorId)&&void 0!==g?g:i.$()}];u.label=3;case 3:return a=o.next(),[3,1];case 4:return[3,7];case 5:return d=u.sent(),f={error:d},[3,7];case 6:try{a&&!a.done&&(p=o.return)&&p.call(o)}finally{if(f)throw f.error}return[7];case 7:return r.clearAssetsStore(),[2,{sessionId:i.$(),visitorId:null!==(v=null===(h=e.find((function(e){return null!==e.visitorId})))||void 0===h?void 0:h.visitorId)&&void 0!==v?v:i.$()}]}}))}))}},321:function(e,t,r){r.d(t,{e:function(){return a},w:function(){return n}});var n,o=r(257),i=r(283);!function(e){e.CLICK="click",e.CUSTOM_EVENT="custom event",e.IDENTIFY="identify",e.PROPERTIES="global event"}(n||(n={}));var a=function(e,t,r){(0,i.Nu)(e,t);var n=(0,o.NH)(e);return(0,i.fB)(n,t,r)}},480:function(e,t,r){r.d(t,{c:function(){return i},q:function(){return o}});var n=r(257),o=function(e){var t=(0,n.Qd)(e)?JSON.stringify(e):String(e);return new Blob([t]).size},i=function(e){var t=0;return e.forEach((function(e,r){t+=r.length,t+="string"==typeof e?e.length:e.size})),t}},283:function(e,t,r){r.d(t,{EE:function(){return O},I2:function(){return k},M0:function(){return E},Nu:function(){return S},fB:function(){return R}});var n=r(412),o=r(553),i=r(735),a=r(257),s=r(321),c=r(480),u=function(){return u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},d="https://web.developer.smartlook.com/docs",f="".concat(d,"/custom-click-properties"),p="".concat(d,"/error-logging#custom-errors-api"),g="".concat(d,"/custom-events#creating-custom-events"),h="".concat(d,"/custom-event-properties"),v="".concat(d,"/identify-visitor"),y="".concat(d,"/custom-navigation-event"),w=function(e){return(0,n.Kg)(e)&&e.length>0&&e.length<=200},b=function(e){return(0,c.q)(e)<=5e3},m=function(e,t){var r=e.trim();return r!==e&&(0,i.o)("Invalid format of string '".concat(r,"'. Please remove spaces at the beginning or at the end of the string. See more at ").concat(I(t),".")),r},S=function(e,t){var r,n=o.NC(e);if(!(0,a.Qd)(n)){var s=(r=n,Object.prototype.toString.call(r).slice(8,-1).toLowerCase());(0,i.o)("Invalid type of ".concat(t," properties. Expected plain object, got ").concat(s,". See more at ").concat(I(t)))}},R=function(e,t,r){var n,o;void 0===r&&(r="");var a=u({},e);try{for(var s=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(e)),c=s.next();!c.done;c=s.next()){var d=l(c.value,2),f=d[0],p=d[1],g=w(f),h=b(p);if(g&&h||delete a[f],g){var v=m(f,t);v!==f&&(a[v]=a[f],delete a[f])}else(0,i.o)("".concat(r?"".concat(r,": "):"","Invalid name of ").concat(t," property '").concat(f,"'. See more at ").concat(I(t)));h||(0,i.o)("".concat(r?"".concat(r,": "):"","Invalid value of ").concat(t," property '").concat(f,"' (").concat(typeof p,"). See more at ").concat(I(t)),p)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}return a},k=function(e){return w(e)?m(String(e),s.w.CUSTOM_EVENT):((0,i.o)("Invalid custom event name '".concat(e,"'. See more at ").concat(g)),e)},E=function(e){var t;if(t=e,(0,c.q)(t)<=5e3)return e;(0,i.o)("Invalid error message. See more at ".concat(p))},O=function(e){if(function(e){return(0,n.Kg)(e)&&e.length>0&&e.length<=1e3}(e))return e;(0,i.o)("Invalid navigation url '".concat(e,"'. See more at ").concat(y))},I=function(e){var t,r;return null!==(r=((t={})[s.w.CLICK]=f,t[s.w.CUSTOM_EVENT]=g,t[s.w.IDENTIFY]=v,t[s.w.PROPERTIES]=h,t)[e])&&void 0!==r?r:d}},153:function(e,t,r){r.d(t,{j:function(){return u}});var n=r(41),o=r(53),i=r(311),a=r(915),s=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=["mousemove","click","keypress","touchmove","drag","wheel","mouseover"],u=function(e){return r=function(){var t,r,u,l,d,f,p,g,h,v,y,w,b,m,S;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]{this.processMiddlewares("console","debug",e,...t),null!==this.loggingLevel&&n.DEBUG>=this.loggingLevel&&console.debug(e,...t)};debugGroup=(e,...t)=>{this.isGroupLoggingEnabled?null!==this.loggingLevel&&n.DEBUG>=this.loggingLevel&&this.pushToGroup("debug",e,...t):this.debug(e,...t)};debugNoConsole=(e,...t)=>{this.processMiddlewares("internal","debug",e,...t)};enableGroupLogging=()=>{this.isGroupLoggingEnabled=!0,null!==this.groupLoggingIntervalId&&(this.groupLoggingIntervalId=setInterval((()=>{const e=this.groupsByKey;this.groupsByKey=new Map;for(const[t,r]of e.entries()){console.groupCollapsed(t);for(const[e,...t]of r)console[e](...t);console.groupEnd()}}),1e3))};error=(e,...t)=>{this.processMiddlewares("console","error",e,...t),null!==this.loggingLevel&&n.ERROR>=this.loggingLevel&&console.error(e,...t)};errorGroup=(e,...t)=>{this.isGroupLoggingEnabled?null!==this.loggingLevel&&n.ERROR>=this.loggingLevel&&this.pushToGroup("error",e,...t):this.error(e,...t)};errorNoConsole=(e,...t)=>{this.processMiddlewares("internal","error",e,...t)};info=(e,...t)=>{this.processMiddlewares("console","info",e,...t),null!==this.loggingLevel&&n.INFO>=this.loggingLevel&&console.log(e,...t)};infoGroup=(e,...t)=>{this.isGroupLoggingEnabled?null!==this.loggingLevel&&n.INFO>=this.loggingLevel&&this.pushToGroup("info",e,...t):this.info(e,...t)};infoNoConsole=(e,...t)=>{this.processMiddlewares("internal","info",e,...t)};setLoggingLevel=e=>{this.loggingLevel=o.convertLogLevelToNumber(e)};setMiddleware=e=>{this.middlewares.push(e)};warn=(e,...t)=>{this.processMiddlewares("console","warn",e,...t),null!==this.loggingLevel&&n.WARN>=this.loggingLevel&&console.warn(e,...t)};warnGroup=(e,...t)=>{this.isGroupLoggingEnabled?null!==this.loggingLevel&&n.WARN>=this.loggingLevel&&this.pushToGroup("warn",e,...t):this.warn(e,...t)};warnNoConsole=(e,...t)=>{this.processMiddlewares("internal","warn",e,...t)};static convertLogLevelToNumber=e=>{switch(e){case"debug":return n.DEBUG;case"info":return n.INFO;case"warn":return n.WARN;default:return n.ERROR}};processMiddlewares=(e,t,r,...n)=>{this.middlewares.forEach((o=>o(e,t,r,...n)))};pushToGroup(e,t,...r){let n=this.groupsByKey.get(t);n||(n=[],this.groupsByKey.set(t,n)),n.push([e,...r])}}const i=new o},185:function(e,t,r){r.d(t,{f:function(){return i}});var n,o=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(r,n){var o=void 0===n?{}:n,i=o.additionalData,a=void 0===i?{}:i,s=o.originalError,c=o.shouldReport,u=void 0===c||c,l=e.call(this,r)||this;return Object.setPrototypeOf(l,t.prototype),l.name="WebSDKError",l.additionalData=a,l.shouldReport=u,s&&(l.originalName=s.name,l.originalStack=s.stack,l.originalMessage=s.message,l.originalError=s),s instanceof t&&(l.originalAdditionalData=s.additionalData),l}return o(t,e),t.prototype.toJSON=function(){return{name:this.name,additionalData:this.additionalData,message:this.message,originalAdditionalData:this.originalAdditionalData,originalError:this.originalError,originalMessage:this.originalMessage,originalName:this.originalName,originalStack:this.originalStack,shouldReport:this.shouldReport,stack:this.stack}},t}(Error)},824:function(e,t,r){r.d(t,{bJ:function(){return n},eu:function(){return o},v2:function(){return i}});var n=function(e){var t,r;return null!==e&&"object"==typeof e&&(e instanceof Error||(null===(t=e.constructor.name)||void 0===t?void 0:t.endsWith("Error"))||(null===(r=e.constructor.name)||void 0===r?void 0:r.endsWith("Exception")))},o=function(e){return n(e)&&(e instanceof SyntaxError||"SyntaxError"===e.constructor.name)},i=function(e){return n(t=e)&&(t instanceof DOMException||"DOMException"===t.constructor.name)&&"SecurityError"===e.name;var t}},119:function(e,t,r){r.d(t,{V1:function(){return n},ks:function(){return i},qf:function(){return o}});var n=function(e){return null!==e&&"object"==typeof e&&"FormData"===e.constructor.name},o=function(e){return null!==e&&"object"==typeof e&&"Blob"===e.constructor.name},i=function(e){return null!==e&&"object"==typeof e&&"Request"===e.constructor.name}},412:function(e,t,r){r.d(t,{Kg:function(){return n},b0:function(){return i},tR:function(){return o}});var n=function(e){return"string"==typeof e},o=function(e){return"number"==typeof(t=e)&&Number.isInteger(t)&&e>=0;var t},i=function(e){return void 0===e}},409:function(e,t,r){r.d(t,{h:function(){return i}});var n,o=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(r,n,o,i,a,s,c,u,l){var d=e.call(this,r)||this;return d.status=n,d.responseTimingData=o,d.requestPayload=a,d.originalError=c,d.responseData=u,d.additionalData=l,d.name="ApiError",Object.setPrototypeOf(d,t.prototype),d.responseDebugData=s?function(e){return{type:e.type,bodyUsed:e.bodyUsed,headers:e.headers?Array.from(e.headers):void 0,ok:e.ok,redirected:e.redirected,url:e.url}}(s):void 0,d.isSignalAborted=null==i?void 0:i.aborted,d.visibilityState=document.visibilityState,d.isOffline=!1===navigator.onLine,d.wasBeaconFallbackUsed=!1,d}return o(t,e),Object.defineProperty(t.prototype,"isConnectionError",{get:function(){return this.status<0&&!this.isAbortedByRecorder&&!this.isAbortedByUserAgent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAbortedByRecorder",{get:function(){return this.isSignalAborted},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAbortedByUserAgent",{get:function(){var e;return this.originalError instanceof Error&&"AbortError"===(null===(e=this.originalError)||void 0===e?void 0:e.name)&&!this.isSignalAborted},enumerable:!1,configurable:!0}),t}(Error)},665:function(e,t,r){r.d(t,{F:function(){return p},T:function(){return g}});var n=r(185),o=r(311),i=r(260),a=function(){return t=function(){return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]